package com.yehun.service;

import com.yehun.entity.PagerEntity;
import com.yehun.entity.Role;
import com.yehun.exception.ErrorException;

import java.util.List;

public interface RoleService {

    List<Role> listAll();

    PagerEntity<Role> listPager(int pageIndex, int pageSize);

    Role get(int id);

    int save(Role role);

    int update(Role role);

    int updateUserNumber(int id);

    int updatePermission(int id, long permission);

    int remove(Integer[] idArray) throws ErrorException;

}
